<template>
  <div class="title_area">
    <img src="@/assets/img/user11.png" alt="waiting" class="user1" />
    <img src="@/assets/img/user22.png" alt="waiting" class="user2" />

    <div class="online">嗯哼～</div>
    <div class="big_title">龚利明，工具集合网站</div>

    <img src="@/assets/img/user33.png" alt="waiting" class="user3" />
    <img src="@/assets/img/user44.png" alt="waiting" class="user4" />
  </div>
</template>

<script setup lang="ts">
import { ref, computed } from 'vue'
import { toHeight, reHeight } from '@/config/t2sUI'
const toHei = toHeight
const reHei = reHeight
</script>
<style scoped lang="scss">
.title_area {
  margin: 0 auto;
  width: min(1414px, 100%);
  padding: 80px 0 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  // margin: 0 56px;
  // background-color: #eee;
  // position: relative;
  position: sticky;
  top: min(calc(100vh - v-bind("reHei(4)")), v-bind("toHei(1)"));

  >img {
    position: absolute;
    transition: all .2s;
    // transform: scale(0.67);
    // transform-origin: left top;
  }

  .user1 {
    top: 15px;
    // left: 388px;
    left: 338px;
    width: 116px;
    height: 99px;
  }

  .user2 {
    top: 15px;
    // right: 300px;
    right: 250px;
    width: 114px;
    height: 102px;
  }

  .user3 {
    bottom: 25px;
    // left: 198px;
    left: 148px;
    width: 112px;
    height: 94px;
  }

  .user4 {
    bottom: 8px;
    // right: 150px;
    right: 100px;
    width: 112px;
    height: 94px;
  }

  .online {
    transform: rotate(-2deg);
    padding: 12px 24px;
    border-radius: 16px;
    background: rgba(107, 87, 255, 0.10);
    color: #6B57FF;
    font-family: Poppins;
    font-size: 48px;
    font-weight: 700;
    line-height: 120%;
    transition: all .2s;
  }

  .big_title {
    color: black;
    font-family: Poppins;
    font-size: 48px;
    font-weight: 700;
    line-height: 74%;
    transition: all .2s;
  }
}


@media screen and (max-width: 1280px) {
  .title_area {
    .user1 {
      left: 138px;
    }

    .user2 {
      right: 150px;
    }

    .online {
      font-size: 46px;
      line-height: 57.6px;
    }

    .big_title {
      font-size: 46px;
      line-height: 35.52px;
    }

    .user3 {
      left: 48px;
      bottom: 0;
    }

    .user4 {
      right: 0;
    }
  }
}

@media screen and (max-width: 767px) {
  .title_area {
    position: relative !important;
    top: 0 !important;
    text-align: center;
    padding: 57px 0 107px;

    .online {
      font-size: 32px;
      transition: all .2s;
    }

    .big_title {
      color: #000;
      font-size: 32px;
      line-height: 120%;
      transition: all .2s;
    }

    >img {
      width: 65px !important;
      height: auto !important;
    }

    .user1 {
      top: 25px;
      left: 13px;
    }

    .user2 {
      top: 9px;
      right: 0;
    }

    .user3 {
      bottom: 55px;
      left: 0;
    }

    .user4 {
      bottom: 48px;
      right: 0;
    }
  }
}
</style>

